<?php

class Controller_MyQEE__Setting extends Controller_Admin
{

    public function action_index()
    {
        if ( HttpIO::METHOD=='POST' )
        {
            return $this->save($_POST);
        }
        $view = new View('admin/cms/config');
        $view->render();
    }

    public function action_tohtml()
    {
    }

    /**
     * 保存设置
     */
    protected function save( $data )
    {
        foreach ( $data as &$item )
        {
            if ( is_array($item) )
            {
                $item = serialize($item);
            }
        }

    }
}